package com.sugon.cloudalibabasentinel.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.sugon.cloudapicommons.pojo.Payment;
import com.sugon.cloudapicommons.pojo.Result;

/**
 * 全局异常捕获
 *
 * @author JH
 * @version 1.0
 * @since 2023/2/27 11:33
 */
public class CustomGlobalHandler {

    public static  Result<Payment> handleException1(BlockException exception) {
        return new Result<>(2020, "自定义限流处理信息....CustomerBlockHandler");
    }

}
